/**
 * @project readnote
 * @Title BookService.java
 * @author huxh
 * @date 2012-2-12
 **/
package com.readnote.user.service;

import com.cr.backbone.hibenate.AppBaseService;
import com.readnote.book.model.Book;
import com.readnote.book.model.UserBook;
import com.readnote.user.model.User;

public interface UserService extends AppBaseService<User> {
	
	/**
	 * 根据用户名、密码查询用户
	 * 密码需要加密后再作为查询条件执行查询
	 * @param name
	 * @param _password
	 * @return
	 * @author huxh
	 * @date 2012-02-14
	 */
	public User getUserByLoginNameAndPassword(String name, String _password);

	
	/**
	 * 根据用户名查询用户
	 * @param name
	 * @return
	 * @author huxh
	 * @date 2012-02-14
	 */
	public User getUserByLoginName(String name);

	
	/**
	 * 注册新用户
	 * @param user
	 * @return
	 * @author huxh
	 * @date 2012-02-14
	 */
	public void saveRegisterUser(User user);
	
	
}
